package com.stm.bi.jobhandler;

import com.stm.bi.etl.AdsResPolicySalesEtlTask;
import com.stm.framework.dto.Response;
import com.stm.job.annotation.JobName;
import com.stm.job.handler.JobHandler;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Component;

/**
 * @author liuyx
 * @date 2025/7/17  10:09
 */
@JobName("ADS政策销售结果ETL任务")
@Component
public class AdsResPolicySalesJobHandler implements JobHandler {
    @Resource
    private AdsResPolicySalesEtlTask adsResPolicySalesEtlTask;

    @Override
    public Response execute(String s) {
        adsResPolicySalesEtlTask.execute();
        return Response.success();
    }
}